
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TrackerTrackerCfg : public ManualSingleton <TrackerTrackerCfg>
{
	friend ManualSingleton <TrackerTrackerCfg>;
public:
	TrackerTrackerCfg();
	~TrackerTrackerCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TrackerTrackerCfgInfo *GetTrackerTrackerCfgInfo(int32_t id);
	const TrackerTrackerCfgMap *GetTrackerTrackerCfgMap() { return &m_TrackerTrackerCfgMap; }
private:
	TrackerTrackerCfgMap m_TrackerTrackerCfgMap;
};

#define  g_MakeTrackerTrackerCfgTable() (TrackerTrackerCfg::Instance())
#define  g_GetTrackerTrackerCfgTable() (TrackerTrackerCfg::GetInstance())
#define  g_DelTrackerTrackerCfgTable() (TrackerTrackerCfg::Destroy())